#include <sys/time.h>
#include <stdio.h>
#include <stdlib.h>
#include <omp.h>

int main() {

	int i,n;
	n = 10;
	double *a = malloc(sizeof(double)*n);
	double *b = malloc(sizeof(double)*n);

	#pragma omp parallel shared(n,a,b) private(i) default(none)
	{
		int a = 10;
		#pragma omp for 
		for (i = 0; i < n; i++)
			a[i] = i;

		#pragma omp for
		for (i = 0; i < n; i++)
			b[i] = 2 * a[i];
	} /* end of parallel region */

	return 0;
}
